<?php
?>
<center>
<br/><br/><br/><br/>
 <form action="deleteMember.php<?php /* $_SERVER["PHP_SELF"] */?>" method="post" >
 <table>
    <tr>
        <td colspan=3 align=center>
                <h2><p style="color:blue">DELETE</p></h2>
        </td>
    </tr>
    <tr>
        <td>
            Username:
        </td>
        <td width=20>
        </td>
        <td>
            <?
			include("Libraries\BusinessLogic\users.php");			
			fill_dropdown();
			?>           
        </td>
    </tr>
   
        <td colspan=3 align=center>          
            <input type="submit" value="Delete">
        </td>
    </tr>
    <tr>
        <td colspan=3 align=center>          
          <?php 
		  if(isset($_POST["user"]))
		  { 
		  	$user=$_POST["user"];			
    		delete_user($user);
			echo "<script>alert('User ".$user." deleted')</script>";
			echo "<center><h4><font color='red'><noscript>User ".$user." deleted!</noscript></p></h4></font>";
		  }
		  ?>
        </td>
    </tr>
    <tr>
        <td colspan=3 align=center>          
         
        </td>
    </tr>
</table>
</form>